package com.buding.fx.utils;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.stage.StageStyle;

/**
 * @author mingdongwei-jwk
 * @date 2023/01/17 14:47
 * @class com.buding.fx.utils
 * @Description
 */
public class PanelUtil extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception {
        Stage stage = new Stage(StageStyle.TRANSPARENT);
        Scene scene = new Scene(createPanel());
        String css = "css/buding-fx-css-main.css";
        scene.getStylesheets().add(css);
        scene.setFill(Color.web("#ffffff00"));
        stage.setScene(scene);
        stage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }

    private static Pane createPanel(){
        Pane pane = new Pane();
        HBox hBox = new HBox();
        Button button = new Button("");
        return new Pane();

    }
}
